package cn.funnyxb.powerremember.uis.task.done.autobrow;

import android.view.GestureDetector;
import android.view.GestureDetector.OnGestureListener;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import cn.funnyxb.tools.appFrame.debugTool.Debuger;

public class DifficultyTouchListener
  implements View.OnTouchListener
{
  private GestureDetector mGestureDetector;
  private GestureDetector.OnGestureListener onGestureListener = new GestureDetector.OnGestureListener()
  {
    public boolean onDown(MotionEvent paramMotionEvent)
    {
      return false;
    }

    public boolean onFling(MotionEvent paramMotionEvent1, MotionEvent paramMotionEvent2, float paramFloat1, float paramFloat2)
    {
      DifficultyTouchListener.this.log("onFling,x=" + paramFloat1 + ",y=" + paramFloat2);
      if (paramFloat2 < -50.0F)
        DifficultyTouchListener.this.simpleTouchListener.onFilingUp();
      while (true)
      {
        return true;
        if (paramFloat2 <= 50.0F)
          continue;
        DifficultyTouchListener.this.simpleTouchListener.onFilingDown();
      }
    }

    public void onLongPress(MotionEvent paramMotionEvent)
    {
    }

    public boolean onScroll(MotionEvent paramMotionEvent1, MotionEvent paramMotionEvent2, float paramFloat1, float paramFloat2)
    {
      return false;
    }

    public void onShowPress(MotionEvent paramMotionEvent)
    {
    }

    public boolean onSingleTapUp(MotionEvent paramMotionEvent)
    {
      return false;
    }
  };
  private SimpleTouchListener simpleTouchListener;

  public DifficultyTouchListener(SimpleTouchListener paramSimpleTouchListener)
  {
    this.simpleTouchListener = paramSimpleTouchListener;
    this.mGestureDetector = new GestureDetector(this.onGestureListener);
  }

  private void log(String paramString)
  {
    Debuger.log("touchlistener", paramString);
  }

  public boolean onTouch(View paramView, MotionEvent paramMotionEvent)
  {
    this.mGestureDetector.onTouchEvent(paramMotionEvent);
    return true;
  }

  public static abstract interface SimpleTouchListener
  {
    public abstract void onFilingDown();

    public abstract void onFilingUp();
  }
}

/* Location:           E:\Desktop\复件 classes_dex2jar.jar
 * Qualified Name:     cn.funnyxb.powerremember.uis.task.done.autobrow.DifficultyTouchListener
 * JD-Core Version:    0.5.3
 */